package com.frikinet.gestorepub.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@SuppressWarnings("serial")
@PersistenceCapable
public class BookVersion implements Serializable
{
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key id;
	
	@Persistent
	private WebUser user;
	
	@Persistent
	private Long idBook;
	
	@Persistent
	private Date updateDate;

	public Key getId()
	{
		return id;
	}

	public void setId(Key id)
	{
		this.id = id;
	}

	public WebUser getUser()
	{
		return user;
	}

	public void setUser(WebUser user)
	{
		this.user = user;
	}

	public Long getIdBook()
	{
		return idBook;
	}

	public void setIdBook(Long idBook)
	{
		this.idBook = idBook;
	}

	public Date getUpdateDate()
	{
		return updateDate;
	}

	public void setUpdateDate(Date updateDate)
	{
		this.updateDate = updateDate;
	}
}
